import request from '@/utils/request'

// 查询菜单计划列表
export function listMenuPlan(query) {
  return request({
    url: '/manage/menuPlan/list',
    method: 'get',
    params: query
  })
}

// 查询菜单计划详细
export function getMenuPlan(menuPlanId) {
  return request({
    url: '/manage/menuPlan/' + menuPlanId,
    method: 'get'
  })
}

// 新增菜单计划
export function addMenuPlan(data) {
  return request({
    url: '/manage/menuPlan',
    method: 'post',
    data: data
  })
}

// 修改菜单计划
export function updateMenuPlan(data) {
  return request({
    url: '/manage/menuPlan',
    method: 'put',
    data: data
  })
}

// 删除菜单计划
export function delMenuPlan(menuPlanId) {
  return request({
    url: '/manage/menuPlan/' + menuPlanId,
    method: 'delete'
  })
}
